package com.ygsj.driversalemonitor;

import android.app.Application;
import android.widget.Toast;

import com.ygsj.driversalemonitor.Utils.Utils;

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        if (!Utils.isNetworkAvailable(this)) {
            Toast.makeText(this, "网络无连接,请检查相关配置", Toast.LENGTH_SHORT).show();
        }
    }
}
